package fina2.dcs.metadata;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.validator.NotNull;

@Entity
@Table(name = "IN_PERIOD_TYPES")
@SuppressWarnings("serial")
public class PeriodType implements Serializable {
	private BigDecimal id;
	private String code;
	private BigDecimal nameStrId;
	private String description;

	@Id
	@Column(name = "ID")
	public BigDecimal getId() {
		return id;
	}

	public void setId(BigDecimal id) {
		this.id = id;
	}

	@NotNull
	@Column(name = "CODE")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "NAMESTRID")
	public BigDecimal getNameStrId() {
		return nameStrId;
	}

	public void setNameStrId(BigDecimal nameStrId) {
		this.nameStrId = nameStrId;
	}

	@Transient
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}